package com.kfm;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class Demo {

    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();
        prop.load(new FileInputStream("io\\db.properties"));
        System.out.println(prop.get("url")); // HashMap get(key) ==> value
        System.out.println(prop.get("username"));
        System.out.println(prop.getProperty("url"));
    }
}
